<template>
  <view class="icon-claim">
    <view class="title"> {{ title }} </view>
    <view class="icon-box">
      <image
        :src="item.icon"
        v-for="item in iconList"
        :key="item.icon"
        mode="scaleToFill"
      />
      <text v-if="count" class="text">{{ `+ ${count}` }}</text>
    </view>
  </view>
</template>
<script>
export default {
  name: "Claim",
  props: {
    title: {
      type: String,
      default: "配套设施",
    },
    count: {
      type: Number,
      default: 0,
    },
    iconList: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.icon-claim {
  box-sizing: border-box;
  margin-top: 10rpx;
  width: 100%;

  padding: 0 40rpx;
  .title {
    margin-top: 70rpx;
    width: 142rpx;
    height: 34rpx;
    font-size: 36rpx;
    font-family: PingFang;
    font-weight: bold;
    color: #020433;
  }
  .icon-box {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    image {
      width: 52rpx;
      height: 52rpx;
      padding-right: 53rpx;
      margin: 52rpx 0;
    }

    .text {
      width: 83rpx;
      height: 34rpx;
      font-size: 48rpx;
      font-family: Montserrat;
      font-weight: 400;
      color: #0f73ee;
      margin-left: 20rpx;
      margin-bottom: 35rpx;
    }
  }
}
</style>